package com.attendance.dto.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalTime;

@Data
public class AttRuleRequest {
    
    private Long id;
    
    @NotBlank(message = "规则名称不能为空")
    private String ruleName;
    
    @NotNull(message = "上班时间不能为空")
    private LocalTime workTime;
    
    @NotNull(message = "下班时间不能为空")
    private LocalTime offTime;
    
    private Integer lateMinutes = 0;
    
    private Integer earlyMinutes = 0;
    
    private Integer status = 1;
} 